package huanzhao.erp.mapper;

import huanzhao.erp.domain.entity.PhonePublishSold;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;

public interface PhonePublishSoldMapper extends BaseMapper<PhonePublishSold> {
    /**
     * 获取最后一次上架的价格
     *
     * @param phoneId 手机id
     * @return BigDecimal
     * 2024/10/13 17:59:17
     */
    BigDecimal getLastPublishPriceById(@Param("phoneId") Long phoneId);
    BigDecimal getLastSoldPriceById(@Param("phoneId") Long phoneId);
}




